package com.zhuoan.im.webapp.dao.mapper;

import com.zhuoan.im.webapp.dao.model.UserGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserGroupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserGroup record);

    int insertSelective(UserGroup record);

    UserGroup selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserGroup record);

    int updateByPrimaryKey(UserGroup record);

    List<UserGroup> queryUserGroupByCreatorUserId(Long id);

    UserGroup queryGroupByCreatorUserIdAndType(@Param("creatorUserId") Long creatorUserId, @Param("type") Integer type);
}